function openLink() {
	// In this case, the developer needs to replace it with the real App Linking address
	window.open("https://appgallery.huawei.com/app/detail?id=com.huawei.hmsapp.books");
}

let urlSearchParams = new URLSearchParams(window.location.search);
let aid = urlSearchParams.get('aid');
console.info('aid is:' + aid);
const lang = navigator.language || navigator.userLanguage;
console.info('lang is:' + lang);

let pageData;
if (lang.toLowerCase().startsWith('zh')) {
	pageData = dataZh;
} else {
	pageData = dataEn;
}
let articleData = pageData.articeList.find((item) => (item.aId === aid));
document.getElementById('user-name').innerHTML = articleData.author;
document.getElementById('article-title').innerHTML = articleData.title;
document.getElementById('detail-text').innerHTML = articleData.content;
document.getElementById('btn-follow').innerHTML = pageData.follow;
document.getElementById('bottom-button').innerHTML = pageData.skip;
document.getElementById('app-name').innerHTML = pageData.appName;
document.getElementById('app-description').innerHTML = pageData.appDesc;